def p_num():
    global num
    print num
    num=5
num=10  
p_num()
print num